from Common.dbhelper import DBHelper
from nameko.timer import timer


class TimingService:
    name = 'timing_service'

    def __init__(self):
        self.dbhelper = DBHelper()
        self.session = self.dbhelper.Session()
        print(1234)

    @timer(interval=1)
    def ping(self):
        # method executed every second
        print("pong")
